package com.strato.logging.v1_0_0.log4j;

import com.strato.logging.v1_0_0.api.Log;

public class Log4jLog implements Log {

	private org.apache.log4j.Logger logger;
	
	public Log4jLog(org.apache.log4j.Logger logger){
		this.logger=logger;
	}

	@Override
	public void debug(Object message) {
		logger.debug(message);
	}

	@Override
	public void info(Object message) {
		logger.info(message);
	}

	@Override
	public void warn(Object message) {
		logger.warn(message);
	}

	@Override
	public void warn(Object message, Throwable e) {
		logger.warn(message, e);
	}

	@Override
	public void error(Object message) {
		logger.error(message);
	}

	@Override
	public void error(Object message, Throwable e) {
		logger.error(message, e);
	}

	@Override
	public void fatal(Object message) {
		logger.fatal(message);
	}

	@Override
	public void fatal(Object message, Throwable e) {
		logger.fatal(message, e);
	}

	@Override
	public void trace(Object message) {
		logger.trace(message);
	}

	@Override
	public boolean isTraceEnabled() {
		return logger.isTraceEnabled();
	}

	@Override
	public boolean isDebugEnabled() {
		return logger.isDebugEnabled();
	}

	@Override
	public void trace(Object message, Throwable e) {
		logger.trace(message, e);
	}

	@Override
	public void debug(Object message, Throwable e) {
		logger.debug(message, e);
	}

	@Override
	public boolean isInfoEnabled() {
		return logger.isInfoEnabled();
	}

	@Override
	public void info(Object message, Throwable e) {
		logger.info(message, e);
	}
	
}
